From 0c2baa9b15adde7ee11116d505748aefdbb77b66 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Sat, 10 Dec 2016 19:41:39 +0100 Subject: [PATCH] babl-fish-path: add debug print message when no fast paths were found Messages get printed when the environment variable BABL_DEBUG_CONVERSIONS is set, which also inhibits loading of babl fish cache. --- babl/babl-fish-path.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c index 23e7757..7a71184 100644 --- a/babl/babl-fish-path.c +++ b/babl/babl-fish-path.c @@ -341,6 +341,11 @@ babl_fish_path (const Babl *source, { babl_free (babl); babl_mutex_unlock (babl_format_mutex); + + if (debug_conversions) + fprintf (stderr, "babl: no fast path for \"%s\" to \"%s\"\n", + babl_get_name (source), + babl_get_name (destination)); return NULL; } -- 2.30.2